package com.combetter.changxing.ui.activity;

import android.content.Intent;

import com.combetter.changxing.R;
import com.combetter.changxing.databinding.ActivityMineUserInfoBinding;
import com.combetter.changxing.ui.base.BaseActivity;
import com.combetter.changxing.ui.fragment.MineUserInfoFragment;
import com.combetter.changxing.util.FragmentUtils;
import com.combetter.changxing.viewmodel.MineUserInfoViewModel;

/**
 * 修改个人资料Activity
 * <p>
 * Created by 深圳唐龙飞讯科技有限公司 on 2018/6/13.
 */
public class MineUserInfoActivity extends BaseActivity<ActivityMineUserInfoBinding, MineUserInfoViewModel> {
    @Override
    public int setLayout() {
        return R.layout.activity_mine_user_info;
    }

    @Override
    public void init() {
        setTitle("修改资料");
        FragmentUtils.addFragment(getSupportFragmentManager(), new MineUserInfoFragment(), R.id.info_layout);
    }

    @Override
    public Class createViewModel() {
        return MineUserInfoViewModel.class;
    }

    @Override
    public void loadData() {

    }

    public void setTitle(String title) {
        mBinding.setTitle(title);
    }


    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
    }
}
